﻿using com.guojin.mj.net.message.game;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ChapterEndPage : EventManager
{
    private static ChapterEndPage instance;
    public static ChapterEndPage GetInstance()
    {
        return instance;
    }
    void Awake()
    {
        instance = this;
    }

    public override void InformationSetting()
    {
        AddListenerToButton(continueBtn, CloseBtnClick);
    }

    public Image bgImg;
    public GameObject group;
    public Button continueBtn;

    //0 失败 1胜利 2聚锅
    public void SetBg(int BgType)
    {
        switch (BgType)
        {
            case 0:
                bgImg.sprite = Resources.Load<Sprite>("BDUI/result/0");
                break;
            case 1:
                bgImg.sprite = Resources.Load<Sprite>("BDUI/result/1");
                break;
            case 2:
                bgImg.sprite = Resources.Load<Sprite>("BDUI/result/2");
                break;
        }
    }

}
